package com.work.mapper.main;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.dto.main.RetreatSetSearchDTO;
import com.work.entity.main.RetreatSet;
import com.work.vo.main.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 退关设置Mapper
 *
 * @author ：dujianyu
 * @since ：Created in 2024/5/27 10:50
 */
public interface RetreatSetMapper extends BaseMapper<RetreatSet> {

    /**
     * 列表
     * @param dto 搜索条件
     * @param page 分页
     * @return List<RetreatSetVO>
     * @author dujianyu
     * @since 2024/5/27 15:39
     */
    List<RetreatSetVO> selectRetreatSetList(@Param("dto") RetreatSetSearchDTO dto, IPage page);

    /**
     * 退关提货列表
     * @param dto 搜索条件
     * @return List<RetreatTallyVO>
     * @author dujianyu
     * @since 2024/5/28 10:23
     */
    List<RetreatTallyVO> selectRetreatTallyList(@Param("dto") RetreatSetSearchDTO dto);

    /**
     * 退关件吨总计
     * @param dto 搜索条件
     * @return RetreatTotalVO
     * @author dujianyu
     * @since 2024/5/28 14:04
     */
    RetreatTotalVO selectRetreatDataTotal(@Param("dto") RetreatSetSearchDTO dto);

    /**
     * 综合统计退关台账
     * @param dto 搜索条件
     * @param page 分页
     * @return List<RetreatSetStatVO>
     * @author dujianyu
     * @since 2024/7/5 14:14
     */
    List<RetreatSetStatVO> selectRetreatSetStatList(@Param("dto") RetreatSetSearchDTO dto, IPage page);

    /**
     * 综合统计退关台账合计
     * @param dto 搜索条件
     * @return RetreatTotalVO
     * @author dujianyu
     * @since 2024/7/5 14:39
     */
    RetreatTotalVO selectRetreatSetStatTotal(@Param("dto") RetreatSetSearchDTO dto);

    /**
     * 综合统计退关台账详情
     * @param dto 搜索条件
     * @param page 分页
     * @return List<RetreatSetStatDetailVO>
     * @author dujianyu
     * @since 2024/7/9 8:45
     */
    List<RetreatSetStatDetailVO> selectRetreatSetStatDetailList(@Param("dto") RetreatSetSearchDTO dto, IPage page);

    /**
     * 综合统计退关理货详情
     * @param dto 搜索条件
     * @param page 分页
     * @return List<RetreatSetStatTallyVO>
     * @author dujianyu
     * @since 2024/7/9 9:45
     */
    List<RetreatSetStatTallyVO> selectRetreatSetStatTallyList(@Param("dto") RetreatSetSearchDTO dto, IPage page);
}
